package com.hzit.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生信息

 * </p>
 *
 * @author wf
 * @since 2024-08-28
 */
// @Getter
// @Setter
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("student1")
@ApiModel(value="Student对象", description="学生信息")
public class Student implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生编号")
    @TableId(value = "sid", type = IdType.INPUT)
    @ExcelProperty("学生编号")
    @ColumnWidth(20)
    private Long sid;

    @ApiModelProperty(value = "学生姓名")
    @TableField("sname")
    @ExcelProperty("学生姓名")
    @ColumnWidth(20)
    private String sname;

    @ApiModelProperty(value = "学生性别")
    @TableField("sex")
    @ExcelProperty("学生性别")
    @ColumnWidth(20)
    private String sex;

    @ApiModelProperty(value = "学生年龄")
    @TableField("age")
    @ExcelProperty("学生年龄")
    @ColumnWidth(20)
    private Integer age;

    @ApiModelProperty(value = "学生住址")
    @TableField("addr")
    @ExcelProperty("学生住址")
    @ColumnWidth(20)
    private String addr;
}
